<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Member Report</a>
        </h2>
        <fieldset> 
            <legend>Member List</legend>

            <div style=" margin-bottom: 10px">
                <span style=" float: left; width:40px;" ><strong>Id</strong></span>
                <span style=" float: left; width:110px" ><strong>Created On</strong></span>
                <span style=" float: left; width:180px"><strong>Member Name</strong></span>
                <span style=" float: left; width:210px"><strong>Email</strong></span>
                <span style=" float: left; width:140px"><strong>Last Login</strong></span>
                <span style="width:150px"><strong>Last Ip</strong></span>
            </div>
            <?php foreach ($member as $member) : ?>
                <div style="display: block;margin-bottom: 10px; float: left">
                    <span style="float: left; width:40px" ><?= $member->id; ?></span>
                    <span style="float: left; width:110px" ><?= substr($member->created_on, 0, 11); ?></span>
                    <span style="float: left; width:180px"><?= $member->first_name . ' ' . $member->last_name; ?>  </span>
                    <span style=" float: left; width:210px"><?= $member->email; ?></span>
                    <span style="float: left; width:140px"><?= $member->last_login; ?></span>
                    <span style=" width:100px"><?= $member->ip; ?></span>
                </div>
                <div style="float:right;margin-bottom: 10px;">
                    <?php if ($member->status == 1) { ?>
                        <a href="<?= base_url(); ?>admin/reports/change_member_status/<?= $member->id; ?>/<?= $member->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Inactive Now </a></span> 
                    <?php } else
                    { ?>
                    <a href="<?= base_url(); ?>admin/reports/change_member_status/<?= $member->id; ?>/<?= $member->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Active Now </a></span> 
                    <?php } ?>
                </div>
<?php endforeach; ?>
        </fieldset>    
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div>
</div>